Refactor contributors pagination

Completed with:

- [x] Refactor contributors pagination  

Can you please review the code changes? and let me know if any further modifications are required.

Thanks.