On the expansion of the universe during the confinement transition