@Findby using xpath with index
I believe what you are trying to do is something like this :
@FindBy(xpath = "//div[contains(@class,'gallery_grid_image_caption gallery_grid_image_caption_padding')]")public WebElement yourElement;
SO-9028757 should provide you more context.