Added resizing logic for when mobiles flip