Slider working and hover over legend