refactored CodeAnimation to SlicedAnimation