Showhide in multifield from dropdown outside multifield


I have one dropdown outside the multifield with 2 option With Image and without image
if I select with Image in dropdown
Multifield should come up with Text area and Image
If I select without Image
Multifield should come up with only Text Area
Using AEM Showhide it is not working. Please guide me with custom JS to solve this issue
NOTE- Cannot use 2 multifield as we have used Min and Max item in multifield which is min-2 and max-8.
