Complex sentence: They were medium-sized temnospondyls with wedge-shaped, tall and narrow skull and, in advcanced forms, elongated snouts, probably an adaptation for feeding on fish.
Split into simpler sentences: They were medium-sized temnospondyls with a wedge-shaped tall and narrow skull and, in advanced forms, elongated snout. This latter was probably an adaptation for feeding on fish.