implement slider control