work even with no photo elements in a particular category