set_group_lines function

set_group_lines - determines coordinates for the separating lines