Add show / hide functionality for previews