fix firefox issue (fixes #51)

fixing display issues on firefox and safari