Set maximum tab amount for each type of devices, and tabs cannot exceed the limit.