Size evolution of star-forming galaxies with 2 < z < 4.5 in the VIMOS Ultra-Deep Survey