Fixing next.previous in carousel