create slider dynamically