Resize the box