Performance optimization Timeline cell

Only switch the layout contraints when the entity class has switched