group select elements only if they are inside the selection area