make preview square automatically