Updated pagination-function

Some of the math was a bit off (one less person in the list than what
was selected, and last member of one page showing up as first member on
next)