I knew Edgar Allan Poe was pro-slavery before I read any of his work.
I knew Ian Fleming was a racist.
It's completely possible to separate the artist from the work.
Also, if you like Gaiman, acquaint yourself with his muse, Tanith Lee. Gaiman stole most of his best ideas and a lot of his writing style from her.