Properly fixes the 'do once' in the sliding animation