use limit instead of between to paginate