Refactoring to helper
Respond to thumbnail animation(#8)