Masturbating while in relationship?

I’m in a relationship and I’m pretty satisfied but we don’t have sex that often because we live really away from eachother.

One time while i masturbated i looked at another man on the instagram. I didn’t act on my feelings but I’m really sexually aroused around this time. And i like to imagine myself with other people. That’s not cheating right?

.. thank you for reading