Added a removeSlider function for the chat window
Updated slider with resize event