set width and length properties on slider to get responsive design