segment_element function

Make a segment element