Formation of the galilean satellites in a gaseous nebula