Add pagination to projects

(cherry picked from commit a304df13d4b4d1b472b91bd8079a792a56ff6a4d)