IF YOU DO NOT NEED A VISA TO STAY IN SLOVENIA, you may stay for another 90 days after the expiry of your residence permit here (and within the EU), and you may enter and leave Slovenia and other EU countries several times, but the period of residence without a permit in Slovenia in the past 180 days may not exceed 90 days.
IF YOU NEED A VISA TO RESIDE IN SLOVENIA, you must leave the territory of the country.