Modify resize functions in gsad.js