adjust the frame width and height