Slider: Remove unused variable

This is a simple PR. Just removing unused variable which is initialized with unused div element.