refresh layout on size change