Fixing slider issue