Padding slices and unpad it if decrypted