fix for relative widths

If the container has relative width (set in %) then the only way to get the width is jQuery's slow method .width().
Also fixed if more elements are selected, there has to be .each loop.