check for slider and textfield before creation