use absolute positioning and clean up resizing code