Viewport resizing automatic based on how many elements in view