fixed: items rotation script(see description)

now respects container's borders