got lazy loading to work with gallery