Include infinite scroll in pagination