A singular perturbation of the heat equation with memory