As you will know from your raisin-cake analogy,
space expands between the galaxies but not within. So every galaxy is surrounded by a "halo" of inhomogeneous vacuum. And inhomegeneous vacuum is
what a gravitational field is. Now my oh my, why can't we find them pesky WIMPs?