Generation of pages and part of drag scroller.