Fixed an issue where cards would overlap when rotating device