add layout limited size cal