adding overlap method for line and adding slope and length calculation