Add slideshow option to 'link image to' in Views
I assume you already have a Gallery or Slideshow working (otherwise check other modules, e.g. Juicebox). If you want the image to link to a specific path you need to choose the option Rewrite Results > Output this field as a link. You can use tokens if you want to change this path dynamically according to other fields in the View.