adding code for slider

need to debug