Sdl surface hide query


suppose there is a small surface on some other big surface. Some event occurs,
say for example- mouse click. when this event occurs, the smaller surface should
not be visible i.e. it gets hidden. when I again click , then that smaller
surface should be visible again i.e. it should reappear.

Is there some way to do so?