The best revision that corrects the shift in voice is:
The kids visited their grandparents, and their grandparents gave them a gift.
This revision maintains a consistent active voice for the first part of the sentence and clarifies who is giving the gift in the second part.