an object slides back and forth