Improved responsiveness of code slider