Hello!
Many elements in GeoDirectory have set minimum heights in order to allow for a minimum number of required fields, specifically the fields that ship with the plugin.
The sidebar listing details block is one of these, and has a min-height of 370px. The height is set to auto, but it doesn’t behave as expected if fields are rendered as images.
You can try this as a start, but your customization with images means you might need to tune it to meet your needs.
.geodir-company_info.geodir-details-sidebar-listing-info {
height: auto;
min-height: auto;
}
Hiding the box under certain conditions, for example if the fields are not filled in, would be a customization beyond the support we can provide here. That said, a search through the forums may help you find ways to do this based on other similar examples.