created slider type switch