Added layer functionality

Added the layered slides functionality