Slingshot mechanism for clusters: gas density regulates star density in the orion nebula cluster (M42) uri icon