The slope of a segment is equal to the ratio of the corresponding vertical side of the triangle to the horizontal side of the triangle.
For the segment AB, the slope is:

For the segment BC, the slope is:

Since the triangles ABE and BCD are similar, then the ratio of corresponding sides of those triangles are the same. Then:

Which means that the slope of both segments is the same.