add gallery animation for forms