YOU SAID:
my husband was sleeping when i was cheating
INTO JAPANESE
私は浮気していたとき私の夫は寝ていました
BACK INTO ENGLISH
My husband was sleeping when I was cheating
INTO JAPANESE
浮気しているときに夫が寝ていた
BACK INTO ENGLISH
My husband was sleeping while cheating
INTO JAPANESE
浮気しながら夫が寝ていた
BACK INTO ENGLISH
My husband was sleeping while cheating
That's deep, man.