fixing slider error