Purchasing a double header like:
GeeekPi Micro Connectors Raspberry Pi 40-pin GPIO 1 to 2 Expansion Board 2 x 20-pin Strip Dual Male Header Double Row Straight GPIO Connector Pin Header Compatible with Raspberry Pi(2Pack)
Double header
May not be the best solution but you should be able to orient the 40 pin cable any way you want. This was helpful also on an RP400!