fixing tall images by croping them in the gallery areas