Polish, positioning frames based on their surrounding elements