added dynamic number of slides for each memory