amend(slideBox): check index validity when select happens