Install cairo-dock-stack-plug-in by entering the following commands in the terminal:
sudo apt update sudo apt install cairo-dock-stack-plug-in
Stack plug-in for Cairo-dock
A collection of official plug-ins and applets for cairo-dock. . This plug-in allows you to build a stack of files, just like the Stacks applet of MacOS X.