improve slider input mixin