Tuning of magnetization dynamics by ultrathin antiferromagnetic layers