How only see the own content of the buttons after click the button ”show me all”

hello I have a problem, when i click the button “show me all” i get all the elements but when I click any other button after that one I don’t get the content of only that button, how can I click any of the other buttons after I click “show me all” and only get the content of that specific button??

Instead of using a hidden value for the previous group, use a hideAll function that hides all of the images.
The best technique is to at first hide everything, and then show only what is required.