First we measured out the spaces in between.
Then my son of 11 and husband made the frames one buy one.
The finished object...
There are 5 frames of 4 m in length and 1.5 m in width. We have space to add another two panels on the tops of the beds as we need to.