As new magma cools and new rock is created the plates move farther and farther apart. But on the other end of the plate the plate subduction under the other plate making fresh magma and starting the cycle a new. The earth doesn’t increase in size due to the law of conservation of mass.