Simplified code of slide animation
Merge pull request #919 from Noiwex/refactor

Simplified code of slide animation