Add start and end to markers