Is there any sort of plate you are using to mount your optic? If so, you could run a steel plate on the lighter slide, and an aluminum one on the heavier slide.
Or, you could have someone silver solder a 1/2 ounce brass weight rod into one of the relief pockets inside the slide, or machine a precise plug and install it with green Loctite (which is permanent and designed for that sort of thing). You could also mix tungsten powder with epoxy and partially fill one of the blind relief pockets.
As long as it isn’t a duty or personal protection firearm, that would likely solve the problem.