call addLayers after initHooks where anim is detected, fixes #2281