only animate when preloader is needed
goodbye to ontransitionend in gallery