working version of slots rendering and inserting