Page flip animation and timer aren't in sync