Dynamic resize of view data section based on screen size