rotate and transform card if it isn't exactly "rectangular"