before | after + VERBing
In the English Grammar Profile, B1 point 61 in the category of CLAUSES is defined as: non-finite subordinate clause with ‘before’ and ‘after’ + ‘-ing’, before or after a main clause, to refer to time. Another way to say this is: ‘after + gerund’ or ‘before + gerund’ Also, note that this point will clash with …