hover over slideshow image and show text

Hello all, first post here and I am looking for some (hopefully) simple advice.

Its been a while since i have done some coding and I am struggling to get the syntax correct. What I would like to do is hover over a slider image and obtain the index number for the image and then append that to the name of the textbox i then want to make visible. When i hover out I want to repeat but make the textbox hidden.

Below is what I have ended up with but it doesn’t work and I am at a loss as there doesn’t appear to be a debug log to view.

let textName = "myText" && $w("#slideshow1").currentIndex; 
$w(textName).show(); 

I would appreciate any advice. thank you.