added target container size adjusting