Implemented automatic slides rotation