There are two interesting wikipedia articles (here and here) that deal with this. My understanding is that the term slash originally comes from the / used to separate any two (or more) characters having a romantic relationship (heterosexual, homosexual, or other) but that now it is most often used to represent a (male) homosexual pairing.