quick fix for the slider. Should get better solution. temporarily addresses issue #5