Improvements to slide animation