Close the details view before zooming the photo preview