public void setupSlide(Slide newSlide){

		currentSlide = newSlide;
		slideID = currentSlide.getSlideID();
		slideName = currentSlide.getSlideName();

		layeredPane = new JLayeredPane();
		layeredPane.setBounds(0, 0, (int) (presentation.getWidth()*scalingFactorX), (int) (presentation.getHeight()*scalingFactorY));
		layeredPane.setLayout(null);


		addSound();

		repaintTask= new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				getParent().getParent().getParent().getParent().getParent().repaint();
				quickRepaintTimer.stop();
			}
		};
		this.setVisible(true);

		int delay = 1000; // 1000ms or 1 second timer
		setCount(0);
		ActionListener taskPerformer= new ActionListener() {
			int count = 0;
			@Override
			public void actionPerformed(ActionEvent e) {
				if(audioPlayer.isPlaying() && !LockedPlaylistValueAccess.lockedPlaylist) {
					audioPlayer.stopMedia();
				}
				addComponents();
				count ++;
				setCount(count);

				if(count == 1){
					quickRepaintTimer = new Timer(1,repaintTask);
					quickRepaintTimer.start();
				}

				getParent().getParent().getParent().validate();
				getParent().getParent().getParent().repaint();
			}

		};
		objectTimer = new Timer(delay, taskPerformer);
		objectTimer.setInitialDelay(50);
		objectTimer.start();

		add(layeredPane);


	}