Fermions and bosons in the expanding universe by the spin-charge-family theory