Add pagination for threads on homepage