Fix animations in gallery