Add loading animation to gallery.