How to reduce the size of a box