fix when having two slides