add css styles to lists of photos