compute previous and next page on init