Of course not the only way, but good enough.
23... g8g3 Otherwise the f5-pawn is captured with check. 24. h2g3  24... e5g4  25. e2g4  25... f5g4 Black doesn't have even a pawn in exchange for his troubles, but miracles happen in speed games.