separated resize functionality
lol