It sounds like the condom slipped off during withdrawal, which means the head of your partner's penis was covered during intercourse. This wouldn't be a risk. If you're concerned that the condom came off during intercourse and you're worried about HIV, you can test at least 28 days after the event with a 4th generation (Ab/Ag) test.