The location of your Gallery is specified in Tools ▸ Options ▸ LibreOffice ▸ Paths. This path obviously depends on your operating system: