fix(pagination): max-size should not change based on the number of pages

If number of pages is less than the max-size then only the number of pages that are available should be displayed, but this should not then update the max-size expression, since if the number of pages then increases we have lost the max-size value that the user set.