preload photos in the galleries