pagination for search results. fixes #235