slider now hooks into variables