added method to prevent user from going to far right into the carousel