use spans for gallery