working on stack animation and firefox compatibility