create sliding window animation successfully