[lib] fix get_vms_slot to really have a slot that suit your needs