Improve item slot detection.