First of all, I'm glad you're OK - bike damage can be repaired or replaced, human damage takes a lot more!ugh....
Secondly, the OEM sliders are a bad design, IMHO. You really want sliders that offer more surface area and mount to more than what is effectively a single bolt. Look at something like the T-Rex that mounts to two of the engine mount bolts and has a crossmember that connects the two sides together for a third mounting point to resist twisting (exactly what happened in your case.)
Thirdly, frame sliders won't protect everything in a drop at speed. If you've got inertia going, the top part of the bike is free to pivot through the fulcrum point of the slider and you're now scraping bars, levers, and fairing. At a stop or a low speed drop, it lands on the slider and the weight of the bike keeps it balanced on the slider without going "over the top", thus protecting all of that stuff. The good news is, without that slider, you likely would've had smashed up engine case covers, so it likely did protect you somewhat.
Sucks this happened, but get it fixed and don't let this mess with your confidence - learn from your mistakes and get back on it!