When species divide a niche to avoid competition for resources, it is called resource partitioning. Sometimes the competition is between species, called inter specific competition, and sometimes it's between individuals of the same species, or intra specific competition.