add a photo class to customize the margins for photo tile