refactor
gallery animation