is there a way to minimize amount of public items in inspector?

I’ve ran into a situation in my UI that the inspector is holding way too many public variables.
And since i’m new to unity, i’m not sure if this is common practice, or should i use alternative ways, like “GetComponents” or “Resource.Load”

here are some examples of my situation:



as you can see, my main issue is with the sprites.
since i hide/show/switch them from code, i need a reference for them.

so all i’m asking, is if this is a common practice, or is there a better way?

use it for hiding public gameobjects in inspector