adds the slider and text view