Why are the intestinal lenghts of algae-eating tadpoles and insect-eating adult frogs so different?

http://www.katecoombs.com/frogfacts.html

hint: "algae-eating" tadpoles and "insect-eating" adult frogs