make slider default an attribute