Do not bother about Ljubljana, if you have time rather go round trip to the Graz.

You need just 6 hours for extra fun, about two hours to go (by car), two hours for enjoy, then two hours back.
...