dense regions of matter were gravitationally attracted to nearby matter and over a long period of time grew even denser , forming gas clouds , stars , galaxies , and other astronomical structures observable today .