moved common slider event functionality to calculations.js