Make number of items per page variable