set slider variable