If you don’t need to have access to the dongles from outside the laptop, then maybe orienting them sideways would give more room for two since the Framework Laptop expansion cards are deeper than they are wide.
Since the USB 2.0 Hub chip is surface mount, maybe the USB type A female and USB Type C male connectors should also be surface mount. For the USB-C connector, you just need the USB 2.0 signals.
There’s more ideas at Dongle Hider
Were you planning to build this yourself by soldering pieces together with wire, or make a PCB? Maybe using JLCPCB or PCBWay or similar service?