Add show/hide thumbnail fucntionality