Implemented animations for slider
Enhanced the mouse handlers for slider movements