Fix layouts for many frames
Layouts: animate frames group

and a bit of refactor.
Fix shadow position for many frames