fixed slides bug