It's been a few years since I played so the rules may have changed but to call Offsides, the player must be behind the defender (closer to the goal) BEFORE the ball is kicked. If the ball is kicked and the running player is even with or in front of the defender but subsequently is behind the defender when he touches the ball, that is not considered offside.
I came in on that play after it happened so I didn't get the whole story but judging by what I saw, there was no offsides. If there was a foul, it was on Slovenia for the jersey grabbing.