only show 7 pages max, first and last buttons