Animation stops on last slide if loop is false. Update moveLeft and moveRight -- use same function and change animation direction. Update timeout function.