Fixed JS for item slider