Fixing horizontal layout animations