I use this in my template:
echo $page->prev()->url(); echo $page->next()->url();
When I come to the end it gives a fatal error because there are no more pages. Is there a clever way to always have a next page? If no next page are found it should start over from the first one, a little bit like a repeating image slider.