Your use is correct. Outside and inside are prepositions themselves and need no of . However, they can also be used as nouns: I painted a picture on the outside of the box; The inside of the house is very messy.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.