CharacterBody2D/AnimatedSprite2D

Hello, everyone,
I wanted to know how to place all the animation frames in the right position for CollisionShape2D. I try to move, for example, the IDLE animation but all the other animations move, I would like them to move independently in order to position them in the correct way. Finally I wanted to ask how I could implement the attack logic to this character, how can I do that?

I will post some screeshots below

Thank you very much in advance