This is the 115th most frequent Slovenian word.
tam
"Tam" in Slovenian means "there" in English.
In this sentence, 'tam' refers to a hypothetical place or position where one can enjoy nature.
Tam lahko uživaš v naravi.
There you can enjoy nature.
In this sentence, 'tam' is used to indicate a specific location, meaning 'over there'.
Tam je moj prijatelj.
Over there is my friend.
Here, 'tam' is again used for location, specifically to describe where the library is.