Fix transition bug on slider