made side be center when width is smaller