fixing slices for firefox