How to show and hide image according by click different button in modular page?

Hi, i am new to Grav cms.

I want to show different picture in modular page by click button,

  1. click button 1, show picture 1 below, while picture 2 is hide in the same position;
  2. button 2 the same function as button 1, but show picture 2.

How to make it possible in modular page ?