JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrap">
<div class="img_display_header">
<div class="expand">+</div>
</div>
<div class="img_display_content"></div>
</div>
</div>

CSS

.wrap {
    margin-left:auto;
    margin-right:auto;
    width:40%;
}

.img_display_header {
    height:20px;
    background-color:#CCC;
    display:block;
    border:#333 solid 1px;
    margin-bottom: 2px;
}

.expand {
 float:right;
 height: 100%;
 padding-right:5px;
 cursor:pointer;
}

.img_display_content {
    width: 100%;
    height:100px;   
    background-color:#0F3;
    margin-top: -2px;
    display:inline;
}

JavaScript

$(document).ready(function(){
   
$( '.expand' ).click(function() {
    if($( '.img_display_content' ).is(":visible")){
        $( '.img_display_content' ).hide();
    } else{
        $( '.img_display_content' ).show();
    }
 });
});