adds first and last entries to pagenav