What is the grammatical function of the gerund phrase? Layering your clothing can help you stay comfortable in harsh weather. A layer against your skin wicks away moisture, an insulating layer keeps you warm, and an outer layer protects you from the elements.
-It is a subject.
-It is an object of a verb.
-It is an object of a preposition.