Unity2D turning character

Hy, recently I started to make a little 2d project in unity where at the moment I have a character with a gun that can shoot. The problem is how do I flip the character when he has to move the other dirrection and the gun with him too? I tried to put both of them in the same photo like a single object and just flip them.. but the result is that the character swaps the position with the gun and he is like teleporting. Can someone help me pls? excuse my English mistakes