with your available space, i would do 5 - 6 cubes sealed, with 10 - 18 cubes ported. id probably start with 6 sealed and 18 ported. i wouldnt glue anything in except the outer walls/shell, and then start testing. i would also put the magnets in the ported chamber. to shrink the chambers just start adding more layers to the shell.
grab a termlab and go to town