text: Title: [Gradio 5] - Gallery with two "X" close button
  Body: ### Describe the bug
  
  I have noticed that the gallery in the latest version of Gradio is showing 2 buttons to close the gallery image, and the button on top is interfering with the selection of the buttons below. This happens when I am in preview mode, either starting in preview mode or after clicking on the image to preview.
  
  ### Have you searched existing issues?  🔎
  
  - [X] I have searched and found no existing issues
  
  ### Reproduction
  
  ```python
  import gradio as gr
  with gr.Blocks(analytics_enabled=False) as app:   
      gallery = gr.Gallery(label="Generated Images",  interactive=True, show_label=True, preview=True, allow_preview=True)
  
  app.launch(inbrowser=True)
  
  ```
  
  
  ### Screenshot
  
  ![image](https://github.com/user-attachments/assets/f9824d58-4cd5-4206-a119-c863211eece1)
  
  
  ### Logs
  
  ```shell
  N/A
  ```
  
  
  ### System Info
  
  ```shell
  Gradio Environment Information:
  ------------------------------
  Operating System: Windows
  gradio version: 5.5.0
  gradio_client version: 1.4.2
  
  ------------------------------------------------
  gradio dependencies in your environment:
  
  aiofiles: 23.2.1
  anyio: 4.4.0
  audioop-lts is not installed.
  fastapi: 0.115.4
  ffmpy: 0.4.0
  gradio-client==1.4.2 is not installed.
  httpx: 0.27.0
  huggingface-hub: 0.25.2
  jinja2: 3.1.3
  markupsafe: 2.1.5
  numpy: 1.26.3
  orjson: 3.10.6
  packaging: 24.1
  pandas: 2.2.2
  pillow: 10.2.0
  pydantic: 2.8.2
  pydub: 0.25.1
  python-multipart==0.0.12 is not installed.
  pyyaml: 6.0.1
  ruff: 0.5.6
  safehttpx: 0.1.1
  semantic-version: 2.10.0
  starlette: 0.41.2
  tomlkit==0.12.0 is not installed.
  typer: 0.12.3
  typing-extensions: 4.12.2
  urllib3: 2.2.2
  uvicorn: 0.30.5
  authlib; extra == 'oauth' is not installed.
  itsdangerous; extra == 'oauth' is not installed.
  
  
  gradio_client dependencies in your environment:
  
  fsspec: 2024.2.0
  httpx: 0.27.0
  huggingface-hub: 0.25.2
  packaging: 24.1
  typing-extensions: 4.12.2
  websockets: 12.0
  ```
  
  
  ### Severity
  
  I can work around it