Fix sliding animation