Lesson 3-8 refactored slider