Giant atoms with time-dependent couplings