adjust x on modal