setting avatar z-index with y_position