dynamic window resizing when terminal resizes