Enhanced child frames positioning. Must be completed with smarter positioning algorithm.
Some code cleanup.