I have a page that often contains large image galleries displayed with thumbnails linking to the actual images. They are then rerouted with JavaScript to open an overlay gallery instead, but I noticed that so many links on a single page can be really harmful for SEO. Is there a way around this or should I just remove the links and make JavaScript do all the work?
An additional note... All the images are linking to a subdomain like img.domain.com and there are sometimes over 100 of them on a page.