The correct term is generation gap . You could possibly say, "the gap between generations," but that would seem tedious and unnecessary. "Gap in generation" does not make sense in this usage.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.