How to properly link an Arduino and its sensors
You could solder those modules to a prototype shield.  If you replace the header with a right-angle one (or even just bend the pins on the existing one) you could even mount it vertically to save space.


Prototype shield:





Right-angled headers: