added range limiting for infinite scrolling