Added correct displaying photos in the slider