Fix for ellipsis appearing when there are pages before/after which are not displayed