Gay rights vs. slavery

So I really hope this does not offend anyone...I'm just curious to hear others view points on this. So please do not take this as more than that.
Recently I have been reading a lot of articles about gay rights being compared to slavery. Basically that taking away homosexuls rights is just as bad as when we did that to African Americans. Does this offend people that the two are being compared? Do you agree with this? To me slavery was so much more and way worse. What are your thoughts on these comparisons?