Remove unnecessary slides from animation