updating height and width of chatbox