fix error of showing slides