Slow dynamics and strong finite-size effects in many-body localization with random and quasiperiodic potentials