how to make boxes for the figures