Acceleration of diffusion in switching periodic sawtooth potential