make sure you add a pause before the layers close the hole for the magnets!
you will need:
foam/sponge, cut roughly bigger that the rectandular shape
8*magnets: 3mm thick and 8mm wide
print in 0.2mm layer height