fixed sliding animation issues