Add animation in gallery mode.