working with variable an slider demo