Is the pipe in the slab 4" PVC or ABS? If so, you could remove the current flange and glue a 3" coupling inside of it, then a bushing into that coupling.
But I would be very cautious about draining a washing machine into a pipe without knowing the venting arrangement of any nearby fixtures. When it drains a washing machine can cause traps of other fixtures to either siphon or bubble if the venting is not done correctly.
I wouldn't recommend bolting 2 toilet flanges together face to face. Longterm, that is asking for leaks.