Gerunds are nominals even though they are more verbs than nouns.  Gerund clauses are noun groups.