Added an optional limit option to the pagination method

Makes sense to have this in case you want the pager to get more items than the default.