bugfix: compute avg after tstart_avg // allow to choose between one and several avg files
write slices to disk