dynamic resizing of divs