To save space I decided to print a custom circuit board. You can get them for little money from China. The board is designed with the Fritzing software. You could change the design in order to add the relays directly to the PCB. I decided against it so I can exchange them without sold...