[panels] detect and handle panel collisions