Time-dependent variational principle with ancillary Krylov subspace