It's possible to place slabs inside yourself.
Steps:
Place a slab on the ground.
Step on it.
Place a block diagonal to it.
Move to a position where you stand partially on the slab, partially in the air next to the block.
Place the slab at the top half of the block you stand in by clicking at the top half of the block.
Relates to MC-100621