Makie - update volumeslices

I am trying to add a timestep slider to the standard example from volumeslices | Makie
to update the vol array
I did not find a method how to update the dataset and redraw the diagram after I change the value of the slider. I can only update slices positions.
Please help.
Oleg

something like that?

for f in 1:50
    set_close_to!(sl_yz, f)
    sleep(0.2)
end

for _ in 1:3
    for f in -49:2:49
        set_close_to!(sl_yz, abs(f))
        sleep(0.2)
    end
end

I do not need an animation. Just to be able to read time slider and update the figure with a new dataset.

using GLMakie, HDF5
fig = Figure()
ax = LScene(fig[1, 1], show_axis=false)
fid=h5open(“./simulation_data.h5”,“r”)
k=keys(fid);
lx,ly,lz=read(fid,“coords/length”)
vol=zeros(30,30,30,10)
for kt in 1:length(k)-1
global kk=k[kt];
vol[:,:,:,kt]=read(fid,“$kk/array”)
end

sz=size(vol)
x = LinRange(0, lx, sz[1])
y = LinRange(0, ly, sz[2])
z = LinRange(0, lz, sz[3])
z_index = Observable{Any}(1)
sgrid = SliderGrid(
fig[2, 1],
(label = “yz plane - x axis”, range = 1:length(x)),
(label = “xz plane - y axis”, range = 1:length(y)),
(label = “xy plane - z axis”, range = 1:length(z)),
(label = “time” , range = 1:length(k)-1),
)

lo = sgrid.layout
nc = ncols(lo)

connect sliders to volumeslices update methods

Volp = vol[:, :, :, 1]
Volp = @lift(vol[:, :, :, $z_index])
plt = volumeslices!(ax, x, y, z, Volp,colormap=:plasma); Colorbar(fig[1, 1][1, 2],plt)

sl_yz, sl_xz, sl_xy, sl_t= sgrid.sliders

set_close_to!(sl_yz, .5length(x))
set_close_to!(sl_xz, .5length(y))
set_close_to!(sl_xy, .5length(z))
set_close_to!(sl_t, 1)

on(sl_yz.value) do v; plt[:update_yz] end
on(sl_xz.value) do v; plt[:update_xz] end
on(sl_xy.value) do v; plt[:update_xy] end
connect!(z_index, sl_t.value)

add toggles to show/hide heatmaps

hmaps = [plt[Symbol(:heatmap_, s)] for s ∈ (:yz, :xz, :xy)]
toggles = [Toggle(lo[i, nc + 1], active = true) for i ∈ 1:length(hmaps)]

map(zip(hmaps, toggles)) do (h, t)
connect!(h.visible, t.active)
end

#cam3d!(ax.scene, projectiontype=Makie.Orthographic)

fig

Hey is this code working for your purpose or you are still looking for a solution? I wanted something like that too.