Enhanced getPagination with $page_range

Was forgotten to decouple from $page_size