make preview invisible instead of closing it reduces skipped frames