put graph in a box