Extended pagination in bootstrap to handle any number of pages.