Suppose that you actually include, say, the "n-word" in your slides. It's certainly possible that no-one in the audience will object if you explain your motivation clearly enough. It's also possible that, no matter how clearly you explain your motivation, some people will still come up to you after the talk and tell you how hurtful it has been to have seen that word and how you cannot possibly understand the hurt that the word has caused because of this or that reason. How are you going react then? If you're going to react with a contrite apology, you definitely shouldn't have displayed the word in the first place. If, on the other hand, you are willing to stand your ground in the face of a person telling you how grievously they have been hurt by seeing a certain sequence of letters in your slides, then I sincerely applaud you, but that's only the first hurdle for you to clear.
The next hurdle is that it's possible, depending on the size of the audience, that you will get someone going into full outrage mode and sharing it on social media. Just because 9 people here will tell you that it's okay (because they want to believe the others will be equally reasonable) doesn't mean that the 10th person, the one that actually sits in on your talk, will share that perspective. Then you may well get a mob of strangers who know absolutely nothing about the context in which you displayed or mentioned the word forming strong opinions about what an awful person you are and how they need to make sure that your institution and collaborators know about this. If you think that in such a case your instutition and your colleagues will have your back, you are most likely wrong.** You will most likely get some private expressions of sympathy but very little public support, no matter how well you explain your motivation for displaying the word. Are you willing to stand your ground in the face of this type of outrage? If you are (in which case I applaud you in the strongest terms), then you can begin to think about whether including the word in your slides is the right thing to do or not. But if you aren't, then you probably shouldn't include it. Note that once you use the word, this is something that anyone can use against you at any point in the future in any context. Is this something that you are okay with?
Finally, in the matter of whether including the word is the right thing to do or not, you will have to make up your own mind. The idea that you can delegate this kind of decision to "experts" is mistaken (although certainly reading what people who have thought about the matter more deeply can be helpful). The main question is, do you think that there such serious harm is exposing adults to something like the "n-word" given its history that no amount of explaining can give you the right to mention it during your talk, or do you think that the idea that even mentioning this word in a context such as yours traumatizes adult humans is at best a superstition and at worst a pretext under which to force others to at least outwardly display conformity to the dominant ideology of the highly educated cosmopolitan class on pain of career consequences? I personally am much more sympathetic to the second perspective, but the point is that this is up to you to decide.
You may espouse neither of these two perspectives, but from your question and comments it seems almost certain you are much closer to the first than to the second. In that case, you should exercise a great deal of caution and ask yourself very seriously what you are going to do if someone comes up to you after the talk and claims to be deeply hurt by seeing the word. People who are prone to react like that no matter how much explanation you provide do exist, and it's anyone guess what the chances of one of them showing up to your talk. Are you going to apologize and "do some extra reading about the slur in question", like trikeprof did? In that case you shouldn't include it in the first place.
Even if you do share the second belief, you should do a cost-benefit analysis of whether it's worth it to you, given that there may well be people in the audience who passionately believe that there is an obligation to shield adults from seeing and hearing the word and who will stop at nothing, including actively working to damage your career, to achieve this goal. For example, I would very much have liked to include the "n-word" in this answer to illustrate my point, but the cost-benefit analysis is that the benefit would have been negligible (especially given that it would have been edited out in a matter of minutes) and almost equally well achieved by spelling out that I would have liked to do so, while the cost of doing so might definitely be non-negligible. The same applies to your talk: if you think it should be okay to include the word in your talk, it's still probably a better idea to avoid it and instead make clear your disapproval of theatrical and tribal reactions to any mention of the "n-word". This will suffice to make the point and will not jeopardize your career to the same degree that actually saying or displaying the word might. In the current climate, unless this is a hill that you're 100% willing to die on, I recommend that you don't.
** I am too lazy to google examples right now, but in any case, anyone with the slightest amount of familiarity with the matter is aware of such examples, while people who profess not to be aware of examples of careers being senselessly ruined by the moral panic around the "n-word" will not be convinced by any number of examples.