lock vertical movement for objects