How to filter data with in a date range , if the data is in nested array

The structure my objects are , as shown below:
{
“name”: “dummy”,
“services”: [
{
“duration”: 15,
“availabilities”: [
{
“date”: “02/02/2022”,
“dateUnix”: 1643740200,
“slots”: [
{
“startUnix”: 1643788800,
“endUnix”: 1643832000,
}
],
“isAvailable”: true
}
]
}
],
“objectID”: “d38f2b32-69a0-40d7-bf11-3e8adfdfb394”
}

I am looking to fetch all objects where data is in a time range in the slots (in services.availabilities.slots).

Example: if someone wants to view data, where services are in 7am to 7pm range. I have the search in filters as:

(services.availabilities.slots.startUnix: ${slotStart} TO ${slotEnd) AND (services.availabilities.slots.endUnix: ${slotStart} TO ${slotEnd})

But this is not giving the the slot where the data matched instead it checks startUnix of one slot and endUnix of another slot then giving me mixed data.

Can anyone help me with this ?