Helper functions to build a numeric range of pagination links.