Giant.tmpl bugfix and z-index fix for preview