increase performance of dynamic layout