Okay, here we have this:
When finding the slope of a function if the coordinates in x are the same, by subtracting them the denominator will make zero. And if the denominator becomes zero it means that it is a vertical line, because vertical lines have an undefined slope, since the "displacement" is zero.