Always display the first and last pages
1 2 3 4 5 ... 23
1 ... 19 20 21 22 23
Show up to 4 pages on either side of current page
1 2 3 4 5 6 7 8 ... 23
1 ... 7 8 9 10 11 12 13 14 15 ... 23