resize the viewport