Narrow down effect of resize event listener, remove unnecessary divs.