Group markers when needed