The titanosaurs were among the largest and heaviest prehistoric animals ever to roam the Earth , with extremely long necks and tails .