Removing extra paddings in mobile devices