add gallery animation