allow selection of elements by class as well as ID when resizing layers