refresh layout after resize