added no-loop feature

this feature is useful to enable stopping the loop when carousel is at
the last slide