first draft at pagination, i.e. creating a sub-page if a page does not fit on screen