resizes portrait according to width/height of browser