Thread sleep to getPhotos