emoved double layout on size changing