set slider type with setAttribute