layers use visibility rather than add/remove Child when switching displays; cache numFrames; remove clamp method
fix merge conflicts