fix pagination when @total_size is devisible by @count

Old implementation

```ruby
@total_size = 25
@count = 101

@total_size = 25
@count = 101
```