add css at photo index