click thumbnail to display photo