convert beat list to flex layout