implement max-width for photo listing