changing values of translate to width/2