changed the slider so it would properly resize