exported resize method
boxterm: added resizing