Gay pitches in for doubleheader split