Tip for when you 'walk the second range', take the stories.id from your first query (i.e. add it to the result), and then in the second query add a criteria stories.id > {prev_max}. This is more efficient than OFFSET clauses.
This is the second post in a row of absolute gibberish (and you only have 2 posts at this point). Either you've posted on the wrong thread or you're fishing to setup for spam.
--Jeff Moden
Change is inevitable... Change for the better is not.