handle chatbox resizing