added a function to 'get the position' of the slider, and started working to integrate that into the moveRight and moveLeft functions.