Projection is when you accuse other people of faults/feelings/thoughts you have, denying you have them. So, I think your example could be one of it.
Gaslighting is when you do things to make someone think they have a mental problem--like telling them what they really saw was a figment of their imagination.
Maybe somebody else will explain these differently and better!