I have no idea when slovenia formed, who the slovenes where or how they became a thing. As far as I'm concerned it's the result of someone fucking up the borders between slavland and italy until the misdrawn borders created a magical gap which slovenia then appeared into.
Or something like that.