Fixing dimensions and adding resize fix