scale frame spacing based on window size