Flexible cables and flex PCBs ... onto your board and save yourself a world of trouble. If you want to have a lot of components within a cramped non-flat area, you could carefully design a ...