fixed bug for slider