Fix display edit in slideshow
compute ratio on client side