Complex sentence: The gland is located just above the eyes, and surrounds a capillary in the head, flowing in the opposite direction so as to constantly strain out saltwater that passes through.
Split into simpler sentences: The gland is located just above the eyes, and surrounds a capillary in the head. This capillary flows in the opposite direction to constantly strain out the saltwater that passes through.