How animals avoid competition for food in rainforests?

How animals avoid competition for food in rainforests?

Animals feed in different layers of forests to avoid competition for food. For example - Gorillas live on forest floor and birds and monkeys live on branches of trees and feed there .