attempted to implement slider