Implemented the slider ratio