You can apply for Slovenian citizenship if you have actually lived in Slovenia for the period of 5 years prior to submitting your application and if you meet other conditions set out in the Citizenship Act. You shall apply for citizenship at the administrative unit where you have your residence registered.
You can find out more about the requirements for obtaining citizenship at the administrative unit where you will submit your application and pay the fee.