fixing bugs, and designing slider