optimize clippinglayout