Update Slider.java

Removed Y-axis verification