js, css position tweak for sliding box