Added loop option to oslide