refactor articles paginator. create generic paginator to be used within the project