Transition between montages

Hi all, I have a door animation that I made in blender, and it works well. However, whenever I play the close montage when its already playing the opening montage, it skips and does not look good, does the same with the other way.
Sometimes, it also “skips” (going to the pose, resetting then playing the animation) when playing the open animation from it being closed, and playing the closing animation when it’s open.

Am I doing something wrong or is there a way to fix this?
Thanks

You may need to create a blend space: Blending Animations in Unreal Engine | Unreal Engine 5.0 Documentation