trying to fix the slider issue