add slot index to decide where to put the pop up label