The family can disappear only when people choose to live differently. Only a socialist society could offer a better way of life because it would respond to human needs instead of to the drive for profits. If married couples were not so isolated they might be less possessive and break-ups less frequent or at least less traumatic. Capitalist society produces people whose aims and desires are 'privatised'. Most people have little or no control over anything outside their own homes.
Democracy means putting a cross on a piece of paper once every five years.
The only place where people are free to make choices and decisions, to do the things that really interest and absorb them, is Home. In a really socialist society, where the working class was in control, the field of choices and responsibilities would move outside the home. Working people could call the whole of society their own, and would have access to a far greater range of satisfactions than most of us have at present. When most people are busy and happy running things over which they previously had no control, they will not want to be cooped up at home any more. This will not happen on the day after a socialist revolution, and presumably some people will want to give up small-family life sooner than others, but it will surely happen sooner or later if we manage to arrive at a socialist society.