improved the lazy load effect on the gallery pages