using events to start animations for slides