switched everything to jquery; dynamic sizing seems to work perfectly now