Added limit of number of pages to be visible in pagination