Continued work on gallery widget

Made clicking thumbnails functional.