added no more photos check to infinite scroll