Improvements to slide count