England all-rounder Moeen Ali admits it was frustrating to be moved around the batting line-up in Sri Lanka.