Head stabilization and body coordination induced by horizontal oscillation