Show content from different membership

I would like to show some content between memberships, I am trying to build a graphical interface for my client that uses membership 2. Is there a way that I can display images of the different memberships and have the images greyed out if they do not belong to the group.

I’m wondering if there is any way to do it without Protect content: [ms-protect-content id=”_”][/ms-protect-content]