Its simple. Just fetch n+4 no of results starting from n where n is the page number passed as the paramter to the page via the url or form. n defaulting to 0 will be the first page.