Accidentally I deleted stacks , how to get it back
Drag it from the Finder onto the Dock. You need to drop it on the right side of the divider. When you hover over a gap between two items, it will expand to make room. Drop it there.
Then, right-click on it and choose Stack from the Display as options.
Retrieving data ...