is it possible or is getting a divorce the best option??
That is something only you and your partner can decide.
It is absolutely possible to rebuild trust and compassion after affairs….AND it if often extremely difficult to do so.
I recommend that you and your partner seek professional marriage counseling, because, often, that is the best way to flesh out ideas and get to the root of what happened that you both had affairs in the first place.