when moving items left/right (or up/down) some could go outside the range and lead to error.
when moving items left/right (or up/down) some could go outside the range and lead to error.