Changed stacking order based on devise size.