Fix auto height
Fix main sliding for safari