fix image slides bug