generate divs on the fly