Put a limit on visble pages in pagination. Fixes #131