More massive planets are able to form earlier in the nebula evolution when the disk gas is denser and hotter, while smaller planets such as Uranus and Neptune can only form gaps in the cold outer nebula.