It functions as the object of the preposition 'After'.
Previous Question
Which sentence contains a gerund phrase?
Next Question
What is the gerund in "I love cooking delicious meals"?