sentence: Over a long period of time , the slightly denser regions of the nearly uniformly distributed matter gravitationally attracted nearby matter and thus grew even denser , forming gas clouds , stars , galaxies , and the other astronomical structures observable today .